package com.ll.service.Impl;

import com.ll.mapper.StudentMapper;
import com.ll.pojo.VO.StudentVO;
import com.ll.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper mapper;
    @Override
    public List<StudentVO> findAllStudentAndClassroom() {
        return mapper.findAllStudentAndClassroom();
    }

    @Override
    public StudentVO findStudentAndAllSubjectByStuid(int sid) {
        return mapper.findStudentAndAllSubjectByStuid(sid );
    }

    @Override
    public StudentVO findStudentAndAllSubjectAndTeacherByStuid(int sid) {
        return mapper.findStudentAndAllSubjectAndTeacherByStuid(sid );
    }
}
